<!-- Role List -->
<head>
  <meta name="layout" content="main" />
  <title>Role List</title>
</head>
<body>
  <div class="body">
    <h1>Role List</h1>
    <g:if test="${flash.message}">
      <div class="message">${flash.message}</div>
    </g:if>
    <div class="list">
      <table>
        <thead>
          <tr>
            <g:sortableColumn property="authority" title="Role Name" />
            <g:sortableColumn property="description" title="Description" />
            <th>&nbsp;</th>
          </tr>
        </thead>
        <tbody>
          <g:each in="${authorityList}" status="i" var="authority">
            <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
              <td>${authority.authority?.encodeAsHTML()}</td>
              <td>${authority.description?.encodeAsHTML()}</td>
              <td class="actionButtons">
                <span class="actionButton">
                  <g:link action="show" id="${authority.id}">Show</g:link>
                </span>
              </td>
            </tr>
          </g:each>
        </tbody>
      </table>
    </div>
    <div class="paginateButtons">
      <g:paginate total="${Role.count()}" />
    </div>
    <tdcmw:linkButton action="create" label="Create New Role" />
  </div>
</body>
